/*
 * StringInput.h
 *
 *  Created on: 18/11/2013
 *      Author: fernando
 */

#ifndef STRINGINPUT_H_
#define STRINGINPUT_H_

#include "SDL/SDL.h"
#include "SDL/SDL_image.h"
#include "SDL/SDL_ttf.h"
#include <string>

class StringInput {
private:
    //The storage string
    std::string str;
    //The text surface
    SDL_Surface *text;
	TTF_Font *font;

    public:
    //Initializes variables
    StringInput();
    //Does clean up
    ~StringInput();
    //Handles input
    void handle_input(SDL_Event&);
    //Shows the message on screen
    void show(unsigned int x, unsigned int y, SDL_Surface*);
    void showHidden(unsigned int x, unsigned int y, SDL_Surface*);
    TTF_Font* getFont();
};

#endif /* STRINGINPUT_H_ */
